package com.lw.question02;

/**
 * @author LW
 * @2020/9/14 9:28
 */
public class 对称字符串 {
    public static void main(String[] args) {
        String A = "aaa";
        char aa[] = A.toCharArray();
        int al =aa.length;
            if (aa[0]==aa[al-1]&&aa[1]==aa[al-2]&&aa[2]==aa[al-al/2-1]){
                System.out.println("Yes");
            }else {
                System.out.println("No");
            }

}
}
